package br.com.agenda.model;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import br.com.agenda.model.utils.BaseEntities;

@Entity
@Table(name = "compromissos")
@AttributeOverride(name = "id", column = @Column(name = "id"))
public class CompEntity extends BaseEntities<Long> {

	private static final long serialVersionUID = 1L;

	private String nome;
	
	private String descricao;
	
	public CompEntity(){
		
	}

	public CompEntity(String nome, String descricao) {
		super();
		this.nome = nome;
		this.descricao = descricao;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}	
}
